package com.woniuxy.intellihome.service;

import com.woniuxy.intellihome.entity.SpecDetail;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2021-08-11
 */
public interface SpecDetailService extends IService<SpecDetail> {
    /**
     * 得到属于某spec的所有明细list
     * @param id spec的id
     * @return spec detail的list
     */
    List<SpecDetail> getBySpecId(int id);

    /**
     * 得到属于某sku的所有detail明细list
     * @param skuId spec的id
     * @return spec 属于sku的detail list
     */
    List<SpecDetail> getDetailsBelong2Sku(int skuId);
}
